<!DOCTYPE html>
<html ng-app="Popup" ng-csp xmlns="http://www.w3.org/1999/html">
<head>
    <link rel="stylesheet" href="css/dataTables.jquery-ui.css">
    <link rel="stylesheet" href="css/jquery-ui.css">
    <link rel="stylesheet" href="popup.css">
    <link rel="stylesheet" href="css/pictogram-button.css">

    <link rel="import" href="components/polymer/polymer.html">
    <polymer-element name="download-info" noscript>
        <template>
            <div>Hello from <b>{{download.url}}</b>. This is my Shadow DOM.</div>
        </template>
    </polymer-element>

</head>
<body id="popupBody">
<div ng-controller="MainController">
    <div id="downloads_table_div">
        <table id="downloads_table" cellpadding="0" cellspacing="0" class="display nowrap compact cell-border">
        </table>
    </div>
    <div id="selectors_pane" style="float: left; display: none;">
        <div style="float: left">
            <button id="folder_button" class="ui-widget"></button>
            <button id="editor_button" class="ui-widget"></button>
        </div>
        <div id="advanced_selectors" style="float: left; display: none">
            <div id="editor_mode">
                <input type="radio" id="mode/javascript" name="editor_mode" checked="checked"><label for="mode/javascript">Javascript</label>
                <input type="radio" id="mode/xquery" name="editor_mode"><label for="mode/xquery">XQuery</label>
                <input type="radio" id="mode/custom" name="editor_mode"><label for="mode/custom">Custom</label>
            </div>
        </div>
        <div id="links_div" style="float: left">
            <select class="ui-widget" ng-model="target" ng-options="target.name for target in targets"></select>
        </div>
        <div id="simple_selectors" style="float: left">
            <select class="ui-widget" ng-model="selector" ng-options="selector.name for selector in selectors"></select>
            <input class="ui-widget" ng-model="pattern" type="input" ng-blur="selectorChange()">
            <button id="crawl_button" class="ui-widget"></button>
        </div>
    </div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/selectableScroll.js"></script>
<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/ace/ace.js"></script>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="storage.js"></script>
<script type="text/javascript" src="popup.js"></script>
</body>
<script type="text/html" id="loading_template">
    <div id="loading_status" style="width: 500px">
        <div class="loading" style="float: left">
            <div class="tracker"></div>
            <div class="spinner" style="display: none">
                <div class="mask">
                    <div class="maskedCircle"></div>
                </div>
            </div>
        </div>
        <div id="loading_info" style="float: left; line-height: 30px; overflow: hidden">Loading...</div>
    </div>
</script>
</html>